home *** CD-ROM | disk | FTP | other *** search
- Spam-Server v0.1 © 1994 by Dan Murrell Jr. DanimalSoft
- various code fragments and much help from Scott Ellis
- ------
-
- Spam-Server is a small utility whose lone function is to alert a user by voice,
- beep, or print that a file has been accessed and closed by the system. It's
- specific application, or why it was written in the first place, was to alert the
- masterful 3D artist Spamgod by voice samples that each frame of animations that he
- was rendering was finished.
-
- Spam-Server features:
- An appicon with the icon image user selectable. The appicon will also be named
- as the current frame Spam-Server is waiting on, and a double click of the appicon
- will exit the program.
-
- Selectable directory for the samples.
-
- Selectable sample player.
-
- Option to use voice samples or printed output to a window.
-
- Option to beep the screen accompanying the voice or printed notification.
-
- Option to move the samples into a directory in RAM: for speed.
-
- Option to make the sample player resident for speed. (uses "resident <x> force")
-
- All options are available as either CLI arguments or icon tooltypes.
-
- Spam-Server options:
- The tooltype options are:
-
- SAMPLESDIR Directory where the samples are found
- SAMPLESPLAYER Program used to play the samples
- WATCHFILE Base name of the file to watch. xxx will be appended
- USEICON Icon to be used for the appicon [do NOT put .info!]
- FIRSTFRAME [optional] first frame to wait on. Defaults to 1
- LASTFRAME last frame to be rendered
- XPOS
- YPOS [optional] X, Y positions of the icon
- DISPLAYBEEP Beeps the screen when messages are printed/spoken
- NOVOICE No samples are played. Output to a window that opens
- RAMSAMPLES Creates a directory RAM:Spamples/ and moves the samples there
- RESPLAYER Tries to make the player resident
-
- The CLI options are similar:
-
- SamplesDir/A,SamplesPlayer/A,WatchFile/A,UseIcon/K,XPos/K/N,YPos/K/N,
- FirstFrame/K/N,LastFrame/N,DisplayBeep/S,NoVoice/S,RamSamples/S,ResPlayer/S:
-
-
- Usage
- -----
- Run your application, whether Lightwave, Imagine, ImageMaster, ADPro, or
- whatever. Set your arguments to Spam-Server, and run it. It will automatically
- begin watching for the first frame. Spam-Server will "tell" you when each frame
- is complete. When the last frame is finished, Spam-Server will "say" that
- rendering is complete, and should cleanly exit. Double-clicking it's appicon
- will exit at any time.
-
-
- Notes
- -----
- Spam-Server does NOT detect the opening of the file, so even if there is some
- delay in the beginning of rendering a frame (from setup or somesuch), Spam-Server
- assumes the frame is being rendered.
-
- When run more than once, Spam-Server may harrass itself, if the RESPLAYER or
- RAMSAMPLES options are used. Spam-Server will create a RAM:Spamples/ directory
- that it deletes upon exiting (when RAMSAMPLES is used). The original Spam-Server
- process is able to delete this directory. Any subsequent Spam-Server cannot,
- even with the option set. The subsequent tasks will still use the RAM:Spamples/
- directory, but if the original deletes the directory, there will be no samples
- to play. This causes no error, but there will be no sound to play. Any
- Spam-Server is able to remove the sample player from the resident list, so only
- use that once.
- All of that is most likely moot, unless you just like to render with more than
- one program and let them fight it out. :)
-
- There may be a problem on a 4000 if Lightwave and Spam-Server are both set to a
- priority of 0. Spamgod has had this problem, but reports that it's easily fixed
- by setting the priority of Lightwave lower. I've been unable to reproduce this
- on my system, which is not a 4000, so maybe there's something funny going on with
- the 4000's filesystem.
-
- --------
-
- Special thanks goes to Scott Ellis, whose Sabot program is the basis of
- Spam-Server. Much of the code is exactly the same, and he gave me a lot of help
- in learning how file notification works.
-
- Also, thanks to Linda Rosul, Spamgod's roommate, for the excellent quality
- samples.
-
- --------
-
- Upgrades to Spam-Server are possible-- I have a couple of ideas. If you have any
- feel free to make comments or suggestions. Email to:
-
- djm2@ra.msstate.edu
-
- Dan Murrell Jr.
-
-
-
- -----
- idea, icon © 1994 Chris "Spamgod" Short
- code © 1994 Scott "ScottE" Ellis and Dan "Danimal" Murrell Jr.
- with various tips, ideas, etc. from Laire, Mlelstv, Pepo, and others of #amiga